package stuff;

import java.util.Scanner;

class Employee{
    private String name;
    private String sex;
    private int age;
    private String phonenumber;

    public void setName(String name1){
        name = name1;
    }
    public String getName(){
        return name;
    }
    public void setSex(String sex1){
        sex = sex1;
    }
    public String getSex(){
        return sex;
    }
    public void setAge(int age1){
        age = age1;
    }
    public int getAge(){
        return age;
    }
    public void setPhonenumber(String numbers){
        phonenumber = numbers;
    }
    public String getPhonenumber(){
        return phonenumber;
    }
    public void getInfo(){
        System.out.println("姓名:"+name+"、性别:"+sex+"、年龄:"+age+"、电话:"+phonenumber);
    }
}

public class employeeTest {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        Employee []employees = new Employee[3];
        for(int i=0;i<3;i++){
            employees[i] = new Employee();
            employees[i].setName(reader.next());
            employees[i].setSex(reader.next());
            employees[i].setAge(reader.nextInt());
            employees[i].setPhonenumber(reader.next());
            employees[i].getInfo();

        }
    }
}
